﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="BG.Web.Admin.SysConfig.Default" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>

<html>
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        .gray-text{width:200px;padding-left:5px;color:Gray;}
        .black-text{width:200px;padding-left:5px;}
    </style>
</head>
<body>
    <ext:ResourceManager ID="ResourceManager1" runat="server" Theme="Slate" />

    <ext:Viewport ID="Viewport1" runat="server" Layout="Fit">
        <Items>
        <ext:Panel ID="Panel1" runat="server" Border="false" Header="false" Padding="15" Layout="Fit">
            <Items>
            <ext:FormPanel ID="EditPanel" Frame="true" MonitorValid="true" runat="server" Padding="20" Layout="form" LabelAlign="Right" LabelWidth="120" MonitorResize="true">
                <Items>
                    <ext:FieldSet runat="server" Padding="5" Layout="form" Title="基本设置">
                    <Items>
                        <ext:TextField ID="txtDeposit" runat="server" FieldLabel="默认押金" Width="60" IndicatorText="元" IndicatorCls="gray-text" />
                        <ext:TextField ID="txtOutTimePrice" runat="server" FieldLabel="超时价" Width="60" IndicatorText="元/时" IndicatorCls="gray-text" />
                        <ext:ComboBox ID="txtPort" Editable="false" FieldLabel="默认端口" EmptyText="请选择..." Width="60" AllowBlank="false" runat="server">
                            <Items>
                                <ext:ListItem Text="端口1" Value="1" />
                                <ext:ListItem Text="端口2" Value="2" />
                                <ext:ListItem Text="端口3" Value="3" />
                            </Items>
                            <SelectedItem Value="1" />
                        </ext:ComboBox>
                        <ext:CheckboxGroup FieldLabel="选项" ColumnsNumber="1" runat="server">
                            <Items>
                            <ext:Checkbox runat="server" ID="txtAutoReadCard" BoxLabel="自动读卡" />
                            <ext:Checkbox runat="server" ID="txtAutoCheckOut" BoxLabel="自动计费" />
                            </Items>
                        </ext:CheckboxGroup>
                    </Items>
                    </ext:FieldSet>

                    <ext:FieldSet runat="server" Padding="5" Layout="form" Title="计费设置">
                    <Items>
                    <ext:TimeField ID="txtNewDayTime" runat="server" FieldLabel="客人开房时间在" Width="60" IndicatorText="之后按新的一天开始计费" MinTime="00:00" MaxTime="12:00" IndicatorCls="black-text" />
                    <ext:TimeField ID="txtNightTime" runat="server" FieldLabel="客人开房时间在" Width="60" IndicatorText="之后按夜房费用计费" IndicatorCls="black-text" />
                    <ext:TimeField ID="txtAddHourTime" runat="server" FieldLabel="客人退房时间在" Width="60" IndicatorText="之后自动追加一小时" MinTime="12:00" MaxTime="20:00" IndicatorCls="black-text" />
                    <ext:TimeField ID="txtAddHalfTime" runat="server" FieldLabel="客人退房时间在" Width="60" IndicatorText="之后计价天数自动追加半天" MinTime="12:00" MaxTime="20:00" IndicatorCls="black-text" />
                    <ext:TimeField ID="txtAddDayTime" runat="server" FieldLabel="客人退房时间在" Width="60" IndicatorText="之后计价天数自动追加一天" MinTime="12:00" MaxTime="20:00" IndicatorCls="black-text" />
                    <ext:SpinnerField ID="txtDefaultHours" runat="server" FieldLabel="客人退房时间在" Width="60" IndicatorText="小时内按钟点价收费" MinValue="0" MaxValue="10" IndicatorCls="black-text" />
                    <ext:SpinnerField ID="txtAllowTime"  FieldLabel="以上时限可以再宽限" Width="60" runat="server" MinValue="0" MaxValue="60" IndicatorText="分钟" IndicatorCls="black-text" />
                    </Items>
                    </ext:FieldSet>
                </Items>
                <Buttons>
                    <ext:Button ID="BtnSave" runat="server" Text="保存" Icon="Disk">
                        <DirectEvents>
                            <Click OnEvent="BtnSave_Click">
                                <EventMask Target="CustomTarget" CustomTarget="={#{EditPanel}.body}" ShowMask="True" />
                            </Click>
                        </DirectEvents>
                    </ext:Button>
                </Buttons>
            </ext:FormPanel>
            </Items>
        </ext:Panel>
        </Items>
    </ext:Viewport>
</body>
</html>
